﻿<phone:PhoneApplicationPage 
    x:Class="ALiteTeam.PackageTracer.View.Pages.Scaner"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False" xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent" Tap="LayoutRoot_Tap">
        <Rectangle x:Name="videoRectangle" Width="1" Height="1" HorizontalAlignment="Center" VerticalAlignment="Center">
            <Rectangle.Fill>
                <VideoBrush x:Name="viewfinderBrush">
                    <VideoBrush.RelativeTransform>
                        <CompositeTransform  
                            x:Name="previewTransform" CenterX=".5" CenterY=".5" />
                    </VideoBrush.RelativeTransform>
                </VideoBrush>
            </Rectangle.Fill>
        </Rectangle>
        <Rectangle x:Name="internalRectangle" Width="100" Height="100" RadiusX="10" RadiusY="10" StrokeThickness="6" Stroke="Green" Opacity="0.9"  Visibility="Collapsed">
            <Rectangle.Fill>
                <SolidColorBrush Opacity="0.1" Color="Aqua" />
            </Rectangle.Fill>
        </Rectangle>
        <Line Name="lineRed" Stroke="Red" StrokeThickness="5" X1="0" Y1="400" X2="480" Y2="400" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="Collapsed"/>
        <TextBlock Name="lblTips" Text="摄像头初始化中" Foreground="{StaticResource PhoneAccentBrush}" />
        <toolkit:PerformanceProgressBar Name="progressBar" Width="330" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="150,0,0,0" />
    </Grid>
</phone:PhoneApplicationPage>
